/**
 * @ClassName StuDemo01
 * @Description 静态变量
 * @Author Li
 * @Date 2022/8/1 9:12
 * @ModifyDate 2022/8/1 9:12
 * @Version 1.0
 */
public class StuDemo01 {
    public static void main(String[] args) {
        Student stu1 = new Student("王二", 22);
        Student stu2 = new Student("张三", 23);
        Student stu3 = new Student("李四", 24);
        Student stu4 = new Student("麻子", 20);

        stu1.show(); // Student:sid=1,name王二,age=22
        stu2.show(); // Student:sid=2,name张三,age=23
        stu3.show(); // Student:sid=3,name李四,age=24
        stu4.show(); // Student:sid=4,name麻子,age=20
    }
}
